package elm.dao;

import elm.pojo.Business;

import java.util.List;

public interface BusinessDao {
    Business login(Integer businessId,String password);
    Business findBusinessByBusinessId(Integer bussinessId);
    List<Business> findAllBusiness();
    List<Business> likeBusiness(String businessName,String businessAddress);


    Integer addBusiness(String businessName);
    void deleteBusiness(Integer businessId);
    Integer updatePassword(Integer businessId,String newPassword);

    int updateBusiness(Business business);
}
